package main

import (
	"fmt"
	"math/rand"
	"time"
)

func main() {
	//fmt.Println(stair(10))
	//gift()

}

func stair(num int) int {
	if num == 1 || num == 2 {
		return num
	}
	return stair(num-2) + stair(num-1)
}

func gift() {
	var out int
	rand.Seed(time.Now().Unix())
	send := []string{"A", "B", "C", "D", "E", "F"}
	gifts := []string{"A", "B", "C", "D", "E", "F"}
	var receive []string
	for i := 1; i <= 6; i++ {
		if i == 6 {
			receive = append(receive, gifts[0])
		} else {
			v := gifts[0]
			gifts = gifts[1:]
			out = rand.Intn(6 - i)
			if out == 0 {
				receive = append(receive, gifts[out])
				gifts = gifts[1:]
			} else {
				receive = append(receive, gifts[out])
				gifts = append(gifts[:out], gifts[out+1:]...)
			}
			gifts = append(gifts, v)
		}
	}
	for i := 0; i < len(send); i++ {
		fmt.Println(send[i], "-->", receive[i])
	}

}
